<?php

!defined('IN_FENGTOP') && exit('Access Denied');
 
class control extends base{

	function control(& $get,& $post){
		$this->base( & $get,& $post);
		//$this->load('category');
	}

	function dodefault() {
		$getForumSQL = "SELECT * 
		                  FROM  `".DBforum_TABLEPRE."post` 
		                 WHERE  `first` =1
		              ORDER BY  `dateline` DESC 
		                 LIMIT 0 , 30";
		$ForumLastest   = $this->db->get_array($getForumSQL);
		
		$getWikiSQL = "SELECT * 
		                 FROM  `".DBwiki_TABLEPRE."doc` 
		                WHERE  `cid` =0
		             ORDER BY  `lastedit` DESC 
		                LIMIT 0 , 30";
		$WikiLastest   = $this->db->get_array($getWikiSQL);

		$this->view->assign('ForumLastest',$ForumLastest);
		$this->view->assign('WikiLastest',$WikiLastest);
		$this->view->display('index.tpl');
	}

 	function dosettheme() {
		$this->FTsetcookie('theme',$this->get[2],24*3600*365);
		$this->header();
	}
}
?>
